package com.runfast.waimai.dao.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class RunfastGoodsSellOutStatusExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RunfastGoodsSellOutStatusExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andBusinessidIsNull() {
            addCriterion("businessId is null");
            return (Criteria) this;
        }

        public Criteria andBusinessidIsNotNull() {
            addCriterion("businessId is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessidEqualTo(Integer value) {
            addCriterion("businessId =", value, "businessid");
            return (Criteria) this;
        }

        public Criteria andBusinessidNotEqualTo(Integer value) {
            addCriterion("businessId <>", value, "businessid");
            return (Criteria) this;
        }

        public Criteria andBusinessidGreaterThan(Integer value) {
            addCriterion("businessId >", value, "businessid");
            return (Criteria) this;
        }

        public Criteria andBusinessidGreaterThanOrEqualTo(Integer value) {
            addCriterion("businessId >=", value, "businessid");
            return (Criteria) this;
        }

        public Criteria andBusinessidLessThan(Integer value) {
            addCriterion("businessId <", value, "businessid");
            return (Criteria) this;
        }

        public Criteria andBusinessidLessThanOrEqualTo(Integer value) {
            addCriterion("businessId <=", value, "businessid");
            return (Criteria) this;
        }

        public Criteria andBusinessidIn(List<Integer> values) {
            addCriterion("businessId in", values, "businessid");
            return (Criteria) this;
        }

        public Criteria andBusinessidNotIn(List<Integer> values) {
            addCriterion("businessId not in", values, "businessid");
            return (Criteria) this;
        }

        public Criteria andBusinessidBetween(Integer value1, Integer value2) {
            addCriterion("businessId between", value1, value2, "businessid");
            return (Criteria) this;
        }

        public Criteria andBusinessidNotBetween(Integer value1, Integer value2) {
            addCriterion("businessId not between", value1, value2, "businessid");
            return (Criteria) this;
        }

        public Criteria andBusinessnameIsNull() {
            addCriterion("businessName is null");
            return (Criteria) this;
        }

        public Criteria andBusinessnameIsNotNull() {
            addCriterion("businessName is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessnameEqualTo(String value) {
            addCriterion("businessName =", value, "businessname");
            return (Criteria) this;
        }

        public Criteria andBusinessnameNotEqualTo(String value) {
            addCriterion("businessName <>", value, "businessname");
            return (Criteria) this;
        }

        public Criteria andBusinessnameGreaterThan(String value) {
            addCriterion("businessName >", value, "businessname");
            return (Criteria) this;
        }

        public Criteria andBusinessnameGreaterThanOrEqualTo(String value) {
            addCriterion("businessName >=", value, "businessname");
            return (Criteria) this;
        }

        public Criteria andBusinessnameLessThan(String value) {
            addCriterion("businessName <", value, "businessname");
            return (Criteria) this;
        }

        public Criteria andBusinessnameLessThanOrEqualTo(String value) {
            addCriterion("businessName <=", value, "businessname");
            return (Criteria) this;
        }

        public Criteria andBusinessnameLike(String value) {
            addCriterion("businessName like", value, "businessname");
            return (Criteria) this;
        }

        public Criteria andBusinessnameNotLike(String value) {
            addCriterion("businessName not like", value, "businessname");
            return (Criteria) this;
        }

        public Criteria andBusinessnameIn(List<String> values) {
            addCriterion("businessName in", values, "businessname");
            return (Criteria) this;
        }

        public Criteria andBusinessnameNotIn(List<String> values) {
            addCriterion("businessName not in", values, "businessname");
            return (Criteria) this;
        }

        public Criteria andBusinessnameBetween(String value1, String value2) {
            addCriterion("businessName between", value1, value2, "businessname");
            return (Criteria) this;
        }

        public Criteria andBusinessnameNotBetween(String value1, String value2) {
            addCriterion("businessName not between", value1, value2, "businessname");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andGoodssellidIsNull() {
            addCriterion("goodsSellId is null");
            return (Criteria) this;
        }

        public Criteria andGoodssellidIsNotNull() {
            addCriterion("goodsSellId is not null");
            return (Criteria) this;
        }

        public Criteria andGoodssellidEqualTo(Integer value) {
            addCriterion("goodsSellId =", value, "goodssellid");
            return (Criteria) this;
        }

        public Criteria andGoodssellidNotEqualTo(Integer value) {
            addCriterion("goodsSellId <>", value, "goodssellid");
            return (Criteria) this;
        }

        public Criteria andGoodssellidGreaterThan(Integer value) {
            addCriterion("goodsSellId >", value, "goodssellid");
            return (Criteria) this;
        }

        public Criteria andGoodssellidGreaterThanOrEqualTo(Integer value) {
            addCriterion("goodsSellId >=", value, "goodssellid");
            return (Criteria) this;
        }

        public Criteria andGoodssellidLessThan(Integer value) {
            addCriterion("goodsSellId <", value, "goodssellid");
            return (Criteria) this;
        }

        public Criteria andGoodssellidLessThanOrEqualTo(Integer value) {
            addCriterion("goodsSellId <=", value, "goodssellid");
            return (Criteria) this;
        }

        public Criteria andGoodssellidIn(List<Integer> values) {
            addCriterion("goodsSellId in", values, "goodssellid");
            return (Criteria) this;
        }

        public Criteria andGoodssellidNotIn(List<Integer> values) {
            addCriterion("goodsSellId not in", values, "goodssellid");
            return (Criteria) this;
        }

        public Criteria andGoodssellidBetween(Integer value1, Integer value2) {
            addCriterion("goodsSellId between", value1, value2, "goodssellid");
            return (Criteria) this;
        }

        public Criteria andGoodssellidNotBetween(Integer value1, Integer value2) {
            addCriterion("goodsSellId not between", value1, value2, "goodssellid");
            return (Criteria) this;
        }

        public Criteria andGoodssellnameIsNull() {
            addCriterion("goodsSellName is null");
            return (Criteria) this;
        }

        public Criteria andGoodssellnameIsNotNull() {
            addCriterion("goodsSellName is not null");
            return (Criteria) this;
        }

        public Criteria andGoodssellnameEqualTo(String value) {
            addCriterion("goodsSellName =", value, "goodssellname");
            return (Criteria) this;
        }

        public Criteria andGoodssellnameNotEqualTo(String value) {
            addCriterion("goodsSellName <>", value, "goodssellname");
            return (Criteria) this;
        }

        public Criteria andGoodssellnameGreaterThan(String value) {
            addCriterion("goodsSellName >", value, "goodssellname");
            return (Criteria) this;
        }

        public Criteria andGoodssellnameGreaterThanOrEqualTo(String value) {
            addCriterion("goodsSellName >=", value, "goodssellname");
            return (Criteria) this;
        }

        public Criteria andGoodssellnameLessThan(String value) {
            addCriterion("goodsSellName <", value, "goodssellname");
            return (Criteria) this;
        }

        public Criteria andGoodssellnameLessThanOrEqualTo(String value) {
            addCriterion("goodsSellName <=", value, "goodssellname");
            return (Criteria) this;
        }

        public Criteria andGoodssellnameLike(String value) {
            addCriterion("goodsSellName like", value, "goodssellname");
            return (Criteria) this;
        }

        public Criteria andGoodssellnameNotLike(String value) {
            addCriterion("goodsSellName not like", value, "goodssellname");
            return (Criteria) this;
        }

        public Criteria andGoodssellnameIn(List<String> values) {
            addCriterion("goodsSellName in", values, "goodssellname");
            return (Criteria) this;
        }

        public Criteria andGoodssellnameNotIn(List<String> values) {
            addCriterion("goodsSellName not in", values, "goodssellname");
            return (Criteria) this;
        }

        public Criteria andGoodssellnameBetween(String value1, String value2) {
            addCriterion("goodsSellName between", value1, value2, "goodssellname");
            return (Criteria) this;
        }

        public Criteria andGoodssellnameNotBetween(String value1, String value2) {
            addCriterion("goodsSellName not between", value1, value2, "goodssellname");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordcodeIsNull() {
            addCriterion("goodsSellRecordCode is null");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordcodeIsNotNull() {
            addCriterion("goodsSellRecordCode is not null");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordcodeEqualTo(String value) {
            addCriterion("goodsSellRecordCode =", value, "goodssellrecordcode");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordcodeNotEqualTo(String value) {
            addCriterion("goodsSellRecordCode <>", value, "goodssellrecordcode");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordcodeGreaterThan(String value) {
            addCriterion("goodsSellRecordCode >", value, "goodssellrecordcode");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordcodeGreaterThanOrEqualTo(String value) {
            addCriterion("goodsSellRecordCode >=", value, "goodssellrecordcode");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordcodeLessThan(String value) {
            addCriterion("goodsSellRecordCode <", value, "goodssellrecordcode");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordcodeLessThanOrEqualTo(String value) {
            addCriterion("goodsSellRecordCode <=", value, "goodssellrecordcode");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordcodeLike(String value) {
            addCriterion("goodsSellRecordCode like", value, "goodssellrecordcode");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordcodeNotLike(String value) {
            addCriterion("goodsSellRecordCode not like", value, "goodssellrecordcode");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordcodeIn(List<String> values) {
            addCriterion("goodsSellRecordCode in", values, "goodssellrecordcode");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordcodeNotIn(List<String> values) {
            addCriterion("goodsSellRecordCode not in", values, "goodssellrecordcode");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordcodeBetween(String value1, String value2) {
            addCriterion("goodsSellRecordCode between", value1, value2, "goodssellrecordcode");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordcodeNotBetween(String value1, String value2) {
            addCriterion("goodsSellRecordCode not between", value1, value2, "goodssellrecordcode");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordidIsNull() {
            addCriterion("goodsSellRecordId is null");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordidIsNotNull() {
            addCriterion("goodsSellRecordId is not null");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordidEqualTo(Integer value) {
            addCriterion("goodsSellRecordId =", value, "goodssellrecordid");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordidNotEqualTo(Integer value) {
            addCriterion("goodsSellRecordId <>", value, "goodssellrecordid");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordidGreaterThan(Integer value) {
            addCriterion("goodsSellRecordId >", value, "goodssellrecordid");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordidGreaterThanOrEqualTo(Integer value) {
            addCriterion("goodsSellRecordId >=", value, "goodssellrecordid");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordidLessThan(Integer value) {
            addCriterion("goodsSellRecordId <", value, "goodssellrecordid");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordidLessThanOrEqualTo(Integer value) {
            addCriterion("goodsSellRecordId <=", value, "goodssellrecordid");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordidIn(List<Integer> values) {
            addCriterion("goodsSellRecordId in", values, "goodssellrecordid");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordidNotIn(List<Integer> values) {
            addCriterion("goodsSellRecordId not in", values, "goodssellrecordid");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordidBetween(Integer value1, Integer value2) {
            addCriterion("goodsSellRecordId between", value1, value2, "goodssellrecordid");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordidNotBetween(Integer value1, Integer value2) {
            addCriterion("goodsSellRecordId not between", value1, value2, "goodssellrecordid");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordnameIsNull() {
            addCriterion("goodsSellRecordName is null");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordnameIsNotNull() {
            addCriterion("goodsSellRecordName is not null");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordnameEqualTo(String value) {
            addCriterion("goodsSellRecordName =", value, "goodssellrecordname");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordnameNotEqualTo(String value) {
            addCriterion("goodsSellRecordName <>", value, "goodssellrecordname");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordnameGreaterThan(String value) {
            addCriterion("goodsSellRecordName >", value, "goodssellrecordname");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordnameGreaterThanOrEqualTo(String value) {
            addCriterion("goodsSellRecordName >=", value, "goodssellrecordname");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordnameLessThan(String value) {
            addCriterion("goodsSellRecordName <", value, "goodssellrecordname");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordnameLessThanOrEqualTo(String value) {
            addCriterion("goodsSellRecordName <=", value, "goodssellrecordname");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordnameLike(String value) {
            addCriterion("goodsSellRecordName like", value, "goodssellrecordname");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordnameNotLike(String value) {
            addCriterion("goodsSellRecordName not like", value, "goodssellrecordname");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordnameIn(List<String> values) {
            addCriterion("goodsSellRecordName in", values, "goodssellrecordname");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordnameNotIn(List<String> values) {
            addCriterion("goodsSellRecordName not in", values, "goodssellrecordname");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordnameBetween(String value1, String value2) {
            addCriterion("goodsSellRecordName between", value1, value2, "goodssellrecordname");
            return (Criteria) this;
        }

        public Criteria andGoodssellrecordnameNotBetween(String value1, String value2) {
            addCriterion("goodsSellRecordName not between", value1, value2, "goodssellrecordname");
            return (Criteria) this;
        }

        public Criteria andOperationidIsNull() {
            addCriterion("operationId is null");
            return (Criteria) this;
        }

        public Criteria andOperationidIsNotNull() {
            addCriterion("operationId is not null");
            return (Criteria) this;
        }

        public Criteria andOperationidEqualTo(Integer value) {
            addCriterion("operationId =", value, "operationid");
            return (Criteria) this;
        }

        public Criteria andOperationidNotEqualTo(Integer value) {
            addCriterion("operationId <>", value, "operationid");
            return (Criteria) this;
        }

        public Criteria andOperationidGreaterThan(Integer value) {
            addCriterion("operationId >", value, "operationid");
            return (Criteria) this;
        }

        public Criteria andOperationidGreaterThanOrEqualTo(Integer value) {
            addCriterion("operationId >=", value, "operationid");
            return (Criteria) this;
        }

        public Criteria andOperationidLessThan(Integer value) {
            addCriterion("operationId <", value, "operationid");
            return (Criteria) this;
        }

        public Criteria andOperationidLessThanOrEqualTo(Integer value) {
            addCriterion("operationId <=", value, "operationid");
            return (Criteria) this;
        }

        public Criteria andOperationidIn(List<Integer> values) {
            addCriterion("operationId in", values, "operationid");
            return (Criteria) this;
        }

        public Criteria andOperationidNotIn(List<Integer> values) {
            addCriterion("operationId not in", values, "operationid");
            return (Criteria) this;
        }

        public Criteria andOperationidBetween(Integer value1, Integer value2) {
            addCriterion("operationId between", value1, value2, "operationid");
            return (Criteria) this;
        }

        public Criteria andOperationidNotBetween(Integer value1, Integer value2) {
            addCriterion("operationId not between", value1, value2, "operationid");
            return (Criteria) this;
        }

        public Criteria andOperationnameIsNull() {
            addCriterion("operationName is null");
            return (Criteria) this;
        }

        public Criteria andOperationnameIsNotNull() {
            addCriterion("operationName is not null");
            return (Criteria) this;
        }

        public Criteria andOperationnameEqualTo(String value) {
            addCriterion("operationName =", value, "operationname");
            return (Criteria) this;
        }

        public Criteria andOperationnameNotEqualTo(String value) {
            addCriterion("operationName <>", value, "operationname");
            return (Criteria) this;
        }

        public Criteria andOperationnameGreaterThan(String value) {
            addCriterion("operationName >", value, "operationname");
            return (Criteria) this;
        }

        public Criteria andOperationnameGreaterThanOrEqualTo(String value) {
            addCriterion("operationName >=", value, "operationname");
            return (Criteria) this;
        }

        public Criteria andOperationnameLessThan(String value) {
            addCriterion("operationName <", value, "operationname");
            return (Criteria) this;
        }

        public Criteria andOperationnameLessThanOrEqualTo(String value) {
            addCriterion("operationName <=", value, "operationname");
            return (Criteria) this;
        }

        public Criteria andOperationnameLike(String value) {
            addCriterion("operationName like", value, "operationname");
            return (Criteria) this;
        }

        public Criteria andOperationnameNotLike(String value) {
            addCriterion("operationName not like", value, "operationname");
            return (Criteria) this;
        }

        public Criteria andOperationnameIn(List<String> values) {
            addCriterion("operationName in", values, "operationname");
            return (Criteria) this;
        }

        public Criteria andOperationnameNotIn(List<String> values) {
            addCriterion("operationName not in", values, "operationname");
            return (Criteria) this;
        }

        public Criteria andOperationnameBetween(String value1, String value2) {
            addCriterion("operationName between", value1, value2, "operationname");
            return (Criteria) this;
        }

        public Criteria andOperationnameNotBetween(String value1, String value2) {
            addCriterion("operationName not between", value1, value2, "operationname");
            return (Criteria) this;
        }

        public Criteria andSortIsNull() {
            addCriterion("sort is null");
            return (Criteria) this;
        }

        public Criteria andSortIsNotNull() {
            addCriterion("sort is not null");
            return (Criteria) this;
        }

        public Criteria andSortEqualTo(Integer value) {
            addCriterion("sort =", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotEqualTo(Integer value) {
            addCriterion("sort <>", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortGreaterThan(Integer value) {
            addCriterion("sort >", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortGreaterThanOrEqualTo(Integer value) {
            addCriterion("sort >=", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortLessThan(Integer value) {
            addCriterion("sort <", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortLessThanOrEqualTo(Integer value) {
            addCriterion("sort <=", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortIn(List<Integer> values) {
            addCriterion("sort in", values, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotIn(List<Integer> values) {
            addCriterion("sort not in", values, "sort");
            return (Criteria) this;
        }

        public Criteria andSortBetween(Integer value1, Integer value2) {
            addCriterion("sort between", value1, value2, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotBetween(Integer value1, Integer value2) {
            addCriterion("sort not between", value1, value2, "sort");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Integer value) {
            addCriterion("type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Integer value) {
            addCriterion("type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Integer value) {
            addCriterion("type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Integer value) {
            addCriterion("type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Integer value) {
            addCriterion("type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Integer> values) {
            addCriterion("type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Integer> values) {
            addCriterion("type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Integer value1, Integer value2) {
            addCriterion("type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("type not between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andStatstrIsNull() {
            addCriterion("statStr is null");
            return (Criteria) this;
        }

        public Criteria andStatstrIsNotNull() {
            addCriterion("statStr is not null");
            return (Criteria) this;
        }

        public Criteria andStatstrEqualTo(String value) {
            addCriterion("statStr =", value, "statstr");
            return (Criteria) this;
        }

        public Criteria andStatstrNotEqualTo(String value) {
            addCriterion("statStr <>", value, "statstr");
            return (Criteria) this;
        }

        public Criteria andStatstrGreaterThan(String value) {
            addCriterion("statStr >", value, "statstr");
            return (Criteria) this;
        }

        public Criteria andStatstrGreaterThanOrEqualTo(String value) {
            addCriterion("statStr >=", value, "statstr");
            return (Criteria) this;
        }

        public Criteria andStatstrLessThan(String value) {
            addCriterion("statStr <", value, "statstr");
            return (Criteria) this;
        }

        public Criteria andStatstrLessThanOrEqualTo(String value) {
            addCriterion("statStr <=", value, "statstr");
            return (Criteria) this;
        }

        public Criteria andStatstrLike(String value) {
            addCriterion("statStr like", value, "statstr");
            return (Criteria) this;
        }

        public Criteria andStatstrNotLike(String value) {
            addCriterion("statStr not like", value, "statstr");
            return (Criteria) this;
        }

        public Criteria andStatstrIn(List<String> values) {
            addCriterion("statStr in", values, "statstr");
            return (Criteria) this;
        }

        public Criteria andStatstrNotIn(List<String> values) {
            addCriterion("statStr not in", values, "statstr");
            return (Criteria) this;
        }

        public Criteria andStatstrBetween(String value1, String value2) {
            addCriterion("statStr between", value1, value2, "statstr");
            return (Criteria) this;
        }

        public Criteria andStatstrNotBetween(String value1, String value2) {
            addCriterion("statStr not between", value1, value2, "statstr");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion("description is null");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion("description is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion("description =", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion("description <>", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion("description >", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("description >=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion("description <", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion("description <=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion("description like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion("description not like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion("description in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion("description not in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion("description between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion("description not between", value1, value2, "description");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}